Feature Group
bash internal / file and stream operations / directory operations / directory navigation (3)
Loading...
bash
This demonstrates various uses of the cd
command in Bash for directory navigation, including moving to the home directory, going up one level, navigating to a specific directory, and returning to the last directory.
cd ~ # change to home directory cd # also goes to home directory cd .. # go up one directory # (^^say, from /home/username/Downloads to /home/username) cd /home/username/Documents # change to specified directory cd ~/Documents/.. # now in home directory (if ~/Documents exists) cd - # change to last directory # => /home/username/Documents
bash internalfile and stream operationsdirectory operationsdirectory navigation